package warmachineroster.presentation.provider;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import warmachinesystem.GameSystem;

public class ArmyListContentProvider implements IStructuredContentProvider {
	
	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}
	
	@Override
	public void dispose() {
	}
	
	@Override
	public Object[] getElements(Object inputElement) {
		GameSystem gs = (GameSystem) inputElement;
		return gs.getArmies().toArray();
	}

}
